#!/bin/sh -e

main ()
{
    for i in $@; do
	owner="$(kiss owns $i)"
	test -z "$owner" || owner=none
        mv -f \
            "$(which $i)" \
            "$owner>$(echo $(realname $i) | sed 's/\//>/')"
    done
}

main $@
